From: Miles Bader Date: Mon, 17 Jun 2002 08:10:22 +0000 (+0000) Subject: (comint-insert-clicked-input): Insert clicked-on previous input without X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~32200 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a283810f71a0005f6ea68941eb50ddd1fcf9b5a6;p=emacs.git (comint-insert-clicked-input): Insert clicked-on previous input without properties. Patch from John Paul Wallington . --- diff --git a/lisp/comint.el b/lisp/comint.el index f864da96496..7aeba47baec 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -779,10 +779,9 @@ buffer. The hook `comint-exec-hook' is run after each exec." (process-mark (get-buffer-process (current-buffer)))) (point)) ;; Insert the clicked-upon input - (insert-buffer-substring - (current-buffer) - (previous-single-char-property-change (1+ pos) 'field) - (next-single-char-property-change pos 'field))))) + (insert (buffer-substring-no-properties + (previous-single-char-property-change (1+ pos) 'field) + (next-single-char-property-change pos 'field))))))